package com.suntine.familytree.core.framework.dataaccess;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 * @corporation 
 * @author suntine
 * @creation 2011-4-9 下午01:27:37
 * @description 
 */
public final class EMF {
	private static final String persistenceUnit = "datastore";
    private static final EntityManagerFactory emfInstance =
        Persistence.createEntityManagerFactory(persistenceUnit);

    private EMF() {}

    public static EntityManagerFactory get() {
        return emfInstance;
    }
}